package com.cattest.cattest;

import com.sml.aop.cat.CatMethodAspect;
import com.sml.aop.cat.CatUrlAspect;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.cattest.cattest.dao")
public class CatTestApplication {

  public static void main(String[] args) {
    SpringApplication.run(CatTestApplication.class, args);
  }

  @Bean
  public CatMethodAspect catMethodAspect() {
    return new CatMethodAspect();
  }

  @Bean
  public CatUrlAspect catUrlAspect() {
    return new CatUrlAspect();
  }

}
